﻿using System;
using System.Windows.Forms;

namespace TestForm
{
    static class Program
    {
        /// <summary>
        /// Point d'entrée principal de l'application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
#if DEBUG
             Logger.Log.Active = true;
#else
            if (Environment.CommandLine.Length > 0)
            {
                Logger.Log.Active = true;
            }
            else
            {
                Logger.Log.Active = false;
            }
#endif



            Logger.Log.TraceAction("ProgramMain", "");

            //Use to force trace even in Release


            DnDEngine.DnDEngine.Start();

            Application.Run(new Form1());
        }
    }
}
